interface Target {
    //这是源类Adapteee没有的方法
    public void request();
}

class Adaptee {
    public void specificRequest() {
        System.out.println("specific request");
    }
}

public class ClassAdapter extends Adaptee implements Target {
    public void request() {
        this.specificRequest();
    }

    public static void main(String[] args) {
        Target target = new ClassAdapter();
        target.request();
    }
}


